package photo.managerv0;

import java.util.List;

public class Album {
	private int num;
	private String cover;
	private String discribe;
	private List<Photo> photos;

	public String toString(){
		return this.discribe;
	}
	public Album(int num,String discribe){
		this.num=num;
		this.discribe=discribe;
	}
	public void setPhotos(List<Photo> photos){
		this.photos=photos;
		this.cover=photos.get(0).getName();
	}
	public List<Photo> getPhotos(){
		return this.photos;
	}
	public int getNum(){
		return num;
	}
	public String getCover(){
		return cover;
	}
	public void setCover(String cover){
		this.cover=cover;
	}
	public String getDiscribe(){
		return discribe;
	}

}
